import axios from "../../axios.js"

//财务类别接口
export default {
  //查询所有
  GET_All(data) {
    return axios({
      url: '/otherExpenses/list',
      method: 'post',
      data,

    })
  },

  //新增
  INSERT(data) {
    return axios({
      url: '/otherExpenses/insert',
      method: 'post',
      data,

    })
  },

  //修改
  UPDATE(data) {
    return axios({
      url: '/otherExpenses/update',
      method: 'post',
      data,

    })
  },

  //删除
  DELETE(data) {
    return axios({
      url: '/otherExpenses/delete',
      method: 'post',
      data,

    })
  },

  //协议号下拉选接口
  selectXyh(data) {
    return axios({
      url: '/otherExpenses/selectXyh',
      method: 'post',
      data,

    })
  },

  //  协议号查渠道下拉选接口
  selectQdByXyh(data) {
    return axios({
      url: '/otherExpenses/selectQdByXyh',
      method: 'get',
      params: data,
    })
  },

  //  费用类型下拉选接口
  FEE_type(data) {
    return axios({
      url: '/crm/feeName/queryAll',
      method: 'get',
      params: data,
    })
  },

  //  费用类别下拉选接口
  FEE_name(data) {
    return axios({
      url: '/crm/financialCategory/queryAll',
      method: 'get',
      params: data,
    })
  },

  //  其他费用打印详情数据
  PRINT_DETAILS(data) {
    return axios({
      url: '/otherExpenses/dyOtherExpensesDetails',
      method: 'post',
      data,
    })
  },

  //通过协议号和费用类型查询中心，部门，人员
  selectUdc(data) {
    return axios({
      url: '/otherExpenses/selectUdc',
      method: 'get',
      params: data,
    })
  },
  /**=============其他费用页面新接口================= */
  // 获取列表
  getList_Api(data) {
    return axios({
      url: 'crm/selExpListByList',
      method: 'post',
      data,
    })
  },
  // 根据姓名获取协议编号
  getNum_Api(data) {
    return axios({
      url: '/crm/contractNoForName',
      method: 'get',
      params:data,
    })
  },
  // 删除
  del_Api(data) {
    return axios({
      url: '/crm/delExp',
      method: 'get',
      params:data,
    })
  },
  // 增加
  add_Api(data) {
    return axios({
      url: '/crm/addExp',
      method: 'post',
      data,
    })
  },
  // 修改
  eidit_Api(data) {
    return axios({
      url: '/crm/updateExp',
      method: 'post',
      data,
    })
  },
//  查看其他费用单详情
  getDetile_Api(data) {
    return axios({
      url: '/crm/selExpById',
      method: 'get',
      params:data,
    })
  },
  
// 根据签单id查询前台/后台归属人/中心/部门/贷款类型和做单渠道
  getInfo(data) {
    return axios({
      url: '/crm/ownerForContro',
      method: 'get',
      params:data,
    })
  },
  // 三级联动查询前/后费用类型及相应部门中心
  getInfo2(data) {
    return axios({
      url: '/crm/selectFee',
      method: 'get',
      params:data,
    })
  },
  getOtherPrintNum(data){
    return axios({
      url: '/otherExpenses/updatePrintNumber',
      method: 'post',
      data
  })
  }

};
